package com.ruoyi.eims.purchase.service.impl;

import java.util.List;

import com.ruoyi.eims.purchase.domain.PurchasePay;
import com.ruoyi.eims.purchase.mapper.PurchasePayMapper;
import com.ruoyi.eims.purchase.service.IPurchasePayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 支付Service业务层处理
 * 
 * @author hp
 * @date 2023-02-05
 */
@Service
public class PurchasePayServiceImpl implements IPurchasePayService
{
    @Autowired
    private PurchasePayMapper purchasePayMapper;

    /**
     * 查询支付
     * 
     * @param id 支付主键
     * @return 支付
     */
    @Override
    public PurchasePay selectPurchasePayById(Long id)
    {
        return purchasePayMapper.selectPurchasePayById(id);
    }

    /**
     * 查询支付列表
     * 
     * @param purchasePay 支付
     * @return 支付
     */
    @Override
    public List<PurchasePay> selectPurchasePayList(PurchasePay purchasePay)
    {
        return purchasePayMapper.selectPurchasePayList(purchasePay);
    }

    /**
     * 新增支付
     * 
     * @param purchasePay 支付
     * @return 结果
     */
    @Override
    public int insertPurchasePay(PurchasePay purchasePay)
    {
        return purchasePayMapper.insertPurchasePay(purchasePay);
    }

    /**
     * 修改支付
     * 
     * @param purchasePay 支付
     * @return 结果
     */
    @Override
    public int updatePurchasePay(PurchasePay purchasePay)
    {
        return purchasePayMapper.updatePurchasePay(purchasePay);
    }

    /**
     * 批量删除支付
     * 
     * @param ids 需要删除的支付主键
     * @return 结果
     */
    @Override
    public int deletePurchasePayByIds(Long[] ids)
    {
        return purchasePayMapper.deletePurchasePayByIds(ids);
    }

    /**
     * 删除支付信息
     * 
     * @param id 支付主键
     * @return 结果
     */
    @Override
    public int deletePurchasePayById(Long id)
    {
        return purchasePayMapper.deletePurchasePayById(id);
    }
}
